package com.fjnu.service;

import com.fjnu.dto.UserConditionDto;
import com.fjnu.entity.User;
import com.fjnu.uitl.PageResult;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface UserService {
    User queryByName(String name);
    int register (User user);
    PageResult<User> queryUsers(UserConditionDto userConditionDto, Integer pageNum, Integer pageSize);
    void addAssignRole(Integer userId, List<Integer> roleIds);
}
